SEND NET MESSAGE INTEGER

This command will send a message containing an integer value to the specified player.

  Syntax
SEND NET MESSAGE INTEGER Player Number, Integer Value
  Parameters
Player Number
Integer
The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you
Integer Value
Integer
The integer to send

  Returns

This command does not return a value.

  Description

The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you.

  Example Code
rem Network game can communicate numbers and strings
while inkey$()<>"x"
cls
rem Send Part
if mouseclick()=1
print "SENDING..."
send net message integer 0,mousex()
endif
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=1 then ReturnInteger=net message integer()
get net message
endwhile
endwhile
  See also

MULTIPLAYER Commands Menu
Index